package com.lvbey.www;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@AllArgsConstructor
@Getter
@Setter
public class ResponseJson implements Serializable {
    private int code;
    private String msg;
    private String data;


    public static ResponseJson success(String data){
        return new ResponseJson(0, "success", data);
    }
    public static ResponseJson error(String errorMsg){
        return new ResponseJson(-1, errorMsg, null);
    }
}
